package com.ruoyi.project.courseuser.courseuser.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户报名活动课程对象 b_course_user
 * 
 * @author ruoyi
 * @date 2024-01-24
 */
public class BCourseUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 课程名额 */
    @Excel(name = "课程名额")
    private Integer courseUserCount;

    /** 课程时日期 */
    @Excel(name = "课程时日期")
    private String courseDate;

    /** 课程时间 */
    @Excel(name = "课程时间")
    private String courseTime;

    /** 报名截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enrollEndTime;

    /** 课程地区 */
    @Excel(name = "课程地区")
    private String courseArea;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 用户手机号码 */
    @Excel(name = "用户手机号码")
    private String userPhone;

    /** 用户openid */
    @Excel(name = "用户openid")
    private String userWxOpenId;
    //课程id
    private Long courseId;

    //身份证号码
    private String userIdCard;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCourseName(String courseName)
    {
        this.courseName = courseName;
    }

    public String getCourseName()
    {
        return courseName;
    }
    public void setCourseUserCount(Integer courseUserCount)
    {
        this.courseUserCount = courseUserCount;
    }

    public Integer getCourseUserCount()
    {
        return courseUserCount;
    }
    public void setCourseDate(String courseDate)
    {
        this.courseDate = courseDate;
    }

    public String getCourseDate()
    {
        return courseDate;
    }
    public void setCourseTime(String courseTime)
    {
        this.courseTime = courseTime;
    }

    public String getCourseTime()
    {
        return courseTime;
    }
    public void setEnrollEndTime(Date enrollEndTime)
    {
        this.enrollEndTime = enrollEndTime;
    }

    public Date getEnrollEndTime()
    {
        return enrollEndTime;
    }
    public void setCourseArea(String courseArea)
    {
        this.courseArea = courseArea;
    }

    public String getCourseArea()
    {
        return courseArea;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setUserPhone(String userPhone)
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone()
    {
        return userPhone;
    }
    public void setUserWxOpenId(String userWxOpenId)
    {
        this.userWxOpenId = userWxOpenId;
    }

    public String getUserWxOpenId()
    {
        return userWxOpenId;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getUserIdCard() {
        return userIdCard;
    }

    public void setUserIdCard(String userIdCard) {
        this.userIdCard = userIdCard;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseName", getCourseName())
            .append("courseUserCount", getCourseUserCount())
            .append("courseDate", getCourseDate())
            .append("courseTime", getCourseTime())
            .append("enrollEndTime", getEnrollEndTime())
            .append("courseArea", getCourseArea())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("userName", getUserName())
            .append("userPhone", getUserPhone())
            .append("userWxOpenId", getUserWxOpenId())
            .toString();
    }
}
